home *** CD-ROM | disk | FTP | other *** search
/ PC Media 7 / PC MEDIA CD07.iso / share / os2 / arc521_2 / sources / arc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-29  |  2.9 KB  |  104 lines

  1. /*
  2.  * $Header: arc.h,v 1.10 88/08/01 14:28:29 hyc Exp $
  3.  */
  4.  
  5. #undef    DOS    /* Just in case... */
  6. #undef    UNIX
  7.  
  8. /*
  9.  * Assumptions:
  10.  * char = 8 bits
  11.  * short = 16 bits
  12.  * long = 32 bits
  13.  * int >= 16 bits
  14.  */
  15.  
  16. #if    MSDOS || GEMDOS
  17. #define    DOS    1
  18. #define    CUTOFF    '\\'
  19. #define    OPEN_R    "rb"
  20. #define    OPEN_W    "wb"
  21. #endif
  22.  
  23. #define    envfind    getenv
  24. #define    setmem(a, b, c)    memset(a, c, b)
  25.  
  26. #if    BSD || SYSV
  27. #define    UNIX    1
  28. #define    CUTOFF    '/'
  29. #define    OPEN_R    "r"
  30. #define    OPEN_W    "w"
  31. #include <ctype.h>
  32. #endif
  33.  
  34. #if    MTS
  35. #define    CUTOFF    sepchr[0]
  36. #endif
  37.  
  38. #if    MTS || SYSV || MSDOS
  39. #define    rindex    strrchr
  40. #define    index    strchr
  41. #endif
  42.  
  43. /*  ARC - Archive utility - ARC Header
  44.  
  45.     Version 2.17, created on 04/22/87 at 13:09:43
  46.  
  47. (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
  48.  
  49.     By:     Thom Henderson
  50.  
  51.     Description:
  52.      This is the header file for the ARC archive utility.  It defines
  53.      global parameters and the references to the external data.
  54.  
  55.  
  56.     Language:
  57.      Computer Innovations Optimizing C86
  58. */
  59.  
  60. #define ARCMARK 26        /* special archive marker        */
  61. #define ARCVER 9        /* archive header version code   */
  62. #define STRLEN 100        /* system standard string length */
  63. #define FNLEN 13        /* file name length              */
  64. #define MAXARG 400        /* maximum number of arguments   */
  65.  
  66. #ifndef DONT_DEFINE        /* Defined by arcdata.c */
  67. #include "arcs.h"
  68.  
  69. extern int      keepbak;    /* true if saving the old archive */
  70. #if    !DOS
  71. extern int      image;        /* true to suppress CRLF/LF x-late */
  72. #endif
  73. #if    MTS
  74. extern char     sepchr[2];    /* Shared file separator, default = ':' */
  75. extern char     tmpchr[2];    /* Temporary file prefix, default = '-' */
  76. #endif
  77. #if    GEMDOS
  78. extern int      hold;        /* hold screen before exiting */
  79. #endif
  80. extern int      warn;        /* true to print warnings */
  81. extern int      note;        /* true to print comments */
  82. extern int      bose;        /* true to be verbose */
  83. extern int      nocomp;        /* true to suppress compression */
  84. extern int      overlay;    /* true to overlay on extract */
  85. extern int      kludge;        /* kludge flag */
  86. extern char    *arctemp;    /* arc temp file prefix */
  87. extern char    *password;    /* encryption password pointer */
  88. extern int      nerrs;        /* number of errors encountered */
  89. extern int      changing;    /* true if archive being modified */
  90.  
  91. extern char     hdrver;        /* header version */
  92.  
  93. extern FILE    *arc;        /* the old archive */
  94. extern FILE    *new;        /* the new archive */
  95. extern char     arcname[STRLEN];/* storage for archive name */
  96. extern char     bakname[STRLEN];/* storage for backup copy name */
  97. extern char     newname[STRLEN];/* storage for new archive name */
  98. extern unsigned short arcdate;    /* archive date stamp */
  99. extern unsigned short arctime;    /* archive time stamp */
  100. extern unsigned short olddate;    /* old archive date stamp */
  101. extern unsigned short oldtime;    /* old archive time stamp */
  102. extern int      dosquash;    /* squash instead of crunch */
  103. #endif                /* DONT_DEFINE */
  104.